﻿--[[
   @brief    game_topic_detail
   @author   saintzhao
   @version  1.0
   @date     2016-01-07
--]]

game_topic_detail_desc =
{
    module_name = 'game_topic_detail',
    events = 
    {
        {
            c_event = 
            {
                {
                    id = ierd_tgp.login_mgr.LOGIN_ON_LOGIN_SUCCESS,
                    callback = "game_topic_detail_control.init"
                },
                {
                    id  = ierd_tgp.game_library.K_PREUPDATE_RESULT,
                    callback = "game_topic_detail_control.update_predownload_result"
                },
                {
                    id  = ierd_tgp.game_library.K_PREUPDATE_PROCESS,
                    callback = "game_topic_detail_control.update_predownload_state"
                }            
            },
            lua_event = 
            {
                {
                    id  = browser_event.OPEN_GAME_TOPIC_DETAIL,
                    callback = "game_topic_detail_control.on_open_game_topic_detail"
                },
                {
                    id  = main_event.UPDATE_GAME_STATE,
                    callback = "game_topic_detail_control.update_predownload_state"
                },
                {
                    id  = browser_event.ON_SAVE_BROWSER_INFO,
                    callback = "game_topic_detail_control.save_browser_info"
                }
            },            
            lua_file = "game_topic_detail\\game_topic_detail_control.lua"
        },
    }
};
desc_mgr.add(game_topic_detail_desc);